package com.dgut.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("purchaseorders")
public class PurchaseOrder implements Serializable {
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Long purchaseId;//进货单id
    private Long productId;//产品id
    private Integer quantityOrdered;//数量
    private LocalDate orderDate;//订单日期
    private LocalDate expectedDeliveryDate;//预计送达日期
    private Integer purchaseOrderStatus;//状态
}
